package day020.homework;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class P7 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("D:\\ideaProjects\\javase_code\\study-practice\\" +
                "src\\day020\\homework\\p6.txt"), "gbk");
        char[] c = new char[1024];
        int len;
        while ((len = isr.read(c)) != -1) {
            System.out.println(new String(c, 0, len));
        }

        isr.close();
    }
}
